import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

export function getUserInfo() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
// 根据id获取员工详情
export function getUserDateilById(id) {
  return request({
    url: `/employees/${id}/personalInfo`
  })
}
// 获取员工基本信息

export function getRoleById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
